const Router = require('koa-router');

// 导入控制层
const tasksController = require('../../controllers/tasksController');

let tasksRouter = new Router();
tasksRouter.post('/task/addNewTask', tasksController.AddTask);
tasksRouter.get('/task/addedTask', tasksController.GetAddedTasks);
tasksRouter.get('/task/finishedTask', tasksController.GetFinishedTasks);

module.exports = tasksRouter;
